x=[0,1,2,3,4,5,6,7]

print(x[2:6:2])
print(x[2:6])
print(x[:6])
print(x[6:])
print(x[6:-1])